<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BudgetRight.Data.Models.ICategoryEntity>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Detail
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Detail</h2>

    <fieldset>
        <legend><%= Html.Encode(Model.Name) %></legend>
        <p>
            <strong>Description:</strong><br />
            <%= Html.Encode(Model.Description) %>
        </p>
        <p>
            <strong>Budget Amount:</strong>
            <%= Html.Encode(String.Format("{0:F}", Model.BudgetAmount)) %>
        </p>
        <p>
            <strong>Child Categories:</strong><br />
            <% Html.RenderPartial("CategoryList", Model.Children); %>
        </p>
    </fieldset>
    <p>

        <%=Html.ActionLink("Edit", "Edit", new { id=Model.Id }) %> |
        <%=Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

